<template>
    <el-result title="404" sub-title="你查找的路径已走丢！请尝试返回!">
      <template #icon>
        <img
          src="../assets/404.jpg" style="width:500px; height:300px"
        />
      </template>
      <template #extra>
        <el-button type="primary" @click="goBack()">Back</el-button>
      </template>
    </el-result>
  </template>
  
  <script setup>
  import { useRouter } from "vue-router";
  
  const router = useRouter();
  function goBack() {
    router.back();
  }
  </script>
  
  <style lang="less" scoped></style>
  